.class public final Lk;
.super Ljava/lang/Object;


# static fields
.field private static final j:[I

.field private static final k:[I


# instance fields
.field private B:[B

.field private C:I

.field public Code:I

.field public I:Lad;

.field private J:I

.field private Z:I

.field private a:I

.field private b:I

.field private c:I

.field private d:I

.field private e:[B

.field private f:I

.field private g:I

.field private h:I

.field private i:I

.field private l:[S

.field private m:[S

.field private n:[B


# direct methods
.method public static constructor <clinit>()V
    .locals 1

    const/16 v0, 0x1d

    new-array v0, v0, [I

    sput-object v0, Lk;->j:[I

    const/16 v0, 0x1e

    new-array v0, v0, [I

    sput-object v0, Lk;->k:[I

    return-void
.end method

.method public constructor <init>(I)V
    .locals 1

    new-array v0, p1, [B

    invoke-direct {p0, v0}, Lk;-><init>([B)V

    return-void
.end method

.method public constructor <init>([B)V
    .locals 8

    const/16 v7, 0x1c

    const/4 v6, 0x0

    const/4 v5, 0x1

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v0, 0x6

    iput v0, p0, Lk;->Z:I

    const/16 v0, 0x23e

    new-array v0, v0, [S

    iput-object v0, p0, Lk;->l:[S

    const/16 v0, 0x3e

    new-array v0, v0, [S

    iput-object v0, p0, Lk;->m:[S

    const/16 v0, 0x120

    new-array v0, v0, [B

    iput-object v0, p0, Lk;->n:[B

    iput-object p1, p0, Lk;->B:[B

    array-length v0, p1

    iput v0, p0, Lk;->J:I

    sget-object v0, Lk;->k:[I

    aget v0, v0, v6

    if-nez v0, :cond_3

    sget-object v0, Lk;->k:[I

    aput v5, v0, v6

    sget-object v0, Lk;->k:[I

    const/4 v1, 0x2

    aput v1, v0, v5

    move v0, v5

    :goto_0
    const/16 v1, 0x1d

    if-ge v0, v1, :cond_0

    sget-object v1, Lk;->k:[I

    add-int/lit8 v2, v0, 0x1

    shr-int/lit8 v3, v0, 0x1

    shl-int v3, v5, v3

    sub-int v4, v0, v5

    shr-int/lit8 v4, v4, 0x1

    shl-int v4, v5, v4

    add-int/2addr v3, v4

    add-int/lit8 v3, v3, 0x1

    aput v3, v1, v2

    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_0
    const/4 v0, 0x3

    move v1, v6

    :goto_1
    if-ge v1, v7, :cond_2

    sget-object v2, Lk;->j:[I

    aput v0, v2, v1

    const/16 v2, 0x8

    if-ge v1, v2, :cond_1

    move v2, v5

    :goto_2
    add-int/2addr v0, v2

    add-int/lit8 v1, v1, 0x1

    goto :goto_1

    :cond_1
    const/4 v2, 0x4

    sub-int v2, v1, v2

    shr-int/lit8 v2, v2, 0x2

    shl-int v2, v5, v2

    goto :goto_2

    :cond_2
    sget-object v0, Lk;->j:[I

    const/16 v1, 0x102

    aput v1, v0, v7

    :cond_3
    return-void
.end method

.method private Code()I
    .locals 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    :goto_0
    iget v0, p0, Lk;->f:I

    iget v1, p0, Lk;->g:I

    if-lt v0, v1, :cond_0

    iget-object v0, p0, Lk;->I:Lad;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lad;->Code(Z)V

    goto :goto_0

    :cond_0
    iget v0, p0, Lk;->Code:I

    add-int/lit8 v0, v0, 0x1

    iput v0, p0, Lk;->Code:I

    iget-object v0, p0, Lk;->e:[B

    iget v1, p0, Lk;->f:I

    add-int/lit8 v2, v1, 0x1

    iput v2, p0, Lk;->f:I

    aget-byte v0, v0, v1

    and-int/lit16 v0, v0, 0xff

    return v0
.end method

.method private final Code(I)I
    .locals 4
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    const/4 v0, 0x0

    move v1, v0

    :goto_0
    if-ge v0, p1, :cond_1

    iget v2, p0, Lk;->i:I

    if-nez v2, :cond_0

    invoke-direct {p0}, Lk;->Code()I

    move-result v2

    iput v2, p0, Lk;->h:I

    const/16 v2, 0x8

    iput v2, p0, Lk;->i:I

    :cond_0
    iget v2, p0, Lk;->h:I

    and-int/lit8 v2, v2, 0x1

    shl-int/2addr v2, v0

    or-int/2addr v1, v2

    iget v2, p0, Lk;->h:I

    ushr-int/lit8 v2, v2, 0x1

    iput v2, p0, Lk;->h:I

    iget v2, p0, Lk;->i:I

    const/4 v3, 0x1

    sub-int/2addr v2, v3

    iput v2, p0, Lk;->i:I

    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_1
    return v1
.end method

.method private Code([S)I
    .locals 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    const/4 v0, 0x0

    :goto_0
    if-ltz v0, :cond_1

    iget v1, p0, Lk;->i:I

    if-nez v1, :cond_0

    invoke-direct {p0}, Lk;->Code()I

    move-result v1

    iput v1, p0, Lk;->h:I

    const/16 v1, 0x8

    iput v1, p0, Lk;->i:I

    :cond_0
    iget v1, p0, Lk;->h:I

    and-int/lit8 v1, v1, 0x1

    add-int/2addr v0, v1

    aget-short v0, p1, v0

    iget v1, p0, Lk;->h:I

    ushr-int/lit8 v1, v1, 0x1

    iput v1, p0, Lk;->h:I

    iget v1, p0, Lk;->i:I

    const/4 v2, 0x1

    sub-int/2addr v1, v2

    iput v1, p0, Lk;->i:I

    goto :goto_0

    :cond_1
    and-int/lit16 v0, v0, 0xfff

    return v0
.end method

.method private static final Code([BI[S)V
    .locals 10

    const/4 v8, 0x1

    const/4 v7, 0x0

    move v0, v7

    :goto_0
    array-length v1, p2

    if-ge v0, v1, :cond_0

    aput-short v7, p2, v0

    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_0
    const/4 v0, 0x2

    move v1, v7

    move v2, v0

    move v0, v8

    :goto_1
    const/16 v3, 0x10

    if-gt v0, v3, :cond_6

    move v3, v2

    move v2, v1

    move v1, v7

    :goto_2
    if-ge v1, p1, :cond_5

    aget-byte v4, p0, v1

    if-ne v4, v0, :cond_2

    sub-int v4, v0, v8

    move v5, v3

    move v3, v4

    move v4, v7

    :goto_3
    if-ltz v3, :cond_7

    shl-int v6, v8, v3

    and-int/2addr v6, v2

    if-eqz v6, :cond_1

    add-int/lit8 v4, v4, 0x1

    :cond_1
    if-nez v3, :cond_3

    move v3, v4

    :goto_4
    const v4, 0x8000

    or-int/2addr v4, v1

    int-to-short v4, v4

    aput-short v4, p2, v3

    add-int/lit8 v2, v2, 0x1

    move v3, v5

    :cond_2
    add-int/lit8 v1, v1, 0x1

    int-to-short v1, v1

    goto :goto_2

    :cond_3
    aget-short v6, p2, v4

    if-nez v6, :cond_4

    aput-short v5, p2, v4

    add-int/lit8 v4, v5, 0x2

    int-to-short v4, v4

    move v9, v5

    move v5, v4

    move v4, v9

    :goto_5
    add-int/lit8 v3, v3, -0x1

    goto :goto_3

    :cond_4
    aget-short v4, p2, v4

    goto :goto_5

    :cond_5
    shl-int/lit8 v1, v2, 0x1

    add-int/lit8 v0, v0, 0x1

    move v2, v3

    goto :goto_1

    :cond_6
    return-void

    :cond_7
    move v3, v4

    goto :goto_4
.end method

.method private Code([SI)[B
    .locals 10
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    const/16 v8, 0x12

    const/16 v7, 0x10

    const/4 v6, 0x0

    new-array v0, p2, [B

    move v1, v6

    :goto_0
    if-ge v1, p2, :cond_4

    invoke-direct {p0, p1}, Lk;->Code([S)I

    move-result v2

    if-ge v2, v7, :cond_0

    add-int/lit8 v3, v1, 0x1

    int-to-byte v2, v2

    aput-byte v2, v0, v1

    move v1, v3

    goto :goto_0

    :cond_0
    if-ne v2, v8, :cond_2

    const/4 v3, 0x7

    :goto_1
    invoke-direct {p0, v3}, Lk;->Code(I)I

    move-result v3

    add-int/lit8 v3, v3, 0x3

    if-ne v2, v8, :cond_1

    add-int/lit8 v3, v3, 0x8

    :cond_1
    if-le v2, v7, :cond_3

    move v2, v6

    :goto_2
    move v9, v3

    move v3, v1

    move v1, v9

    :goto_3
    add-int/lit8 v4, v1, -0x1

    if-lez v1, :cond_5

    add-int/lit8 v1, v3, 0x1

    int-to-byte v5, v2

    aput-byte v5, v0, v3

    move v3, v1

    move v1, v4

    goto :goto_3

    :cond_2
    const/16 v3, 0xe

    sub-int v3, v2, v3

    goto :goto_1

    :cond_3
    const/4 v2, 0x1

    sub-int v2, v1, v2

    aget-byte v2, v0, v2

    goto :goto_2

    :cond_4
    return-object v0

    :cond_5
    move v1, v3

    goto :goto_0
.end method

.method private I()Z
    .locals 7

    const/4 v6, 0x1

    const/4 v5, 0x0

    :cond_0
    iget v0, p0, Lk;->c:I

    sub-int v1, v0, v6

    iput v1, p0, Lk;->c:I

    if-lez v0, :cond_2

    iget-object v0, p0, Lk;->B:[B

    iget v1, p0, Lk;->C:I

    add-int/lit8 v2, v1, 0x1

    iput v2, p0, Lk;->C:I

    iget-object v2, p0, Lk;->B:[B

    iget v3, p0, Lk;->a:I

    add-int/lit8 v4, v3, 0x1

    iput v4, p0, Lk;->a:I

    aget-byte v2, v2, v3

    aput-byte v2, v0, v1

    iget v0, p0, Lk;->a:I

    iget v1, p0, Lk;->J:I

    if-ne v0, v1, :cond_1

    iput v5, p0, Lk;->a:I

    :cond_1
    iget v0, p0, Lk;->b:I

    iget v1, p0, Lk;->C:I

    if-ne v0, v1, :cond_0

    move v0, v6

    :goto_0
    return v0

    :cond_2
    move v0, v5

    goto :goto_0
.end method

.method private Z()Z
    .locals 6
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    const/16 v5, 0x100

    const/4 v4, 0x1

    iget v0, p0, Lk;->c:I

    if-lez v0, :cond_0

    invoke-direct {p0}, Lk;->I()Z

    move-result v0

    if-eqz v0, :cond_0

    move v0, v4

    :goto_0
    return v0

    :cond_0
    iget-object v0, p0, Lk;->l:[S

    invoke-direct {p0, v0}, Lk;->Code([S)I

    move-result v0

    if-eq v0, v5, :cond_5

    if-le v0, v5, :cond_3

    const/16 v1, 0x101

    sub-int/2addr v0, v1

    sget-object v1, Lk;->j:[I

    aget v1, v1, v0

    iput v1, p0, Lk;->c:I

    const/4 v1, 0x7

    if-le v0, v1, :cond_1

    const/16 v1, 0x1c

    if-eq v0, v1, :cond_1

    iget v1, p0, Lk;->c:I

    shr-int/lit8 v0, v0, 0x2

    sub-int/2addr v0, v4

    invoke-direct {p0, v0}, Lk;->Code(I)I

    move-result v0

    add-int/2addr v0, v1

    iput v0, p0, Lk;->c:I

    :cond_1
    iget-object v0, p0, Lk;->m:[S

    invoke-direct {p0, v0}, Lk;->Code([S)I

    move-result v0

    sget-object v1, Lk;->k:[I

    aget v1, v1, v0

    const/4 v2, 0x3

    if-le v0, v2, :cond_6

    shr-int/lit8 v0, v0, 0x1

    sub-int/2addr v0, v4

    invoke-direct {p0, v0}, Lk;->Code(I)I

    move-result v0

    add-int/2addr v0, v1

    :goto_1
    iget v1, p0, Lk;->C:I

    sub-int v0, v1, v0

    iput v0, p0, Lk;->a:I

    iget v0, p0, Lk;->a:I

    if-gez v0, :cond_2

    iget v0, p0, Lk;->J:I

    iget v1, p0, Lk;->a:I

    add-int/2addr v0, v1

    iput v0, p0, Lk;->a:I

    :cond_2
    invoke-direct {p0}, Lk;->I()Z

    move-result v0

    if-eqz v0, :cond_4

    move v0, v4

    goto :goto_0

    :cond_3
    iget-object v1, p0, Lk;->B:[B

    iget v2, p0, Lk;->C:I

    add-int/lit8 v3, v2, 0x1

    iput v3, p0, Lk;->C:I

    int-to-byte v0, v0

    aput-byte v0, v1, v2

    :cond_4
    iget v0, p0, Lk;->b:I

    iget v1, p0, Lk;->C:I

    if-ne v0, v1, :cond_0

    move v0, v4

    goto :goto_0

    :cond_5
    const/4 v0, 0x0

    goto :goto_0

    :cond_6
    move v0, v1

    goto :goto_1
.end method


# virtual methods
.method public final Code([BII)V
    .locals 1

    iput-object p1, p0, Lk;->e:[B

    iput p2, p0, Lk;->f:I

    add-int v0, p2, p3

    iput v0, p0, Lk;->g:I

    return-void
.end method

.method public final I([BII)I
    .locals 8
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    const/4 v0, 0x0

    iput v0, p0, Lk;->Code:I

    iget v0, p0, Lk;->C:I

    iget v1, p0, Lk;->J:I

    if-ne v0, v1, :cond_0

    const/4 v0, 0x0

    iput v0, p0, Lk;->C:I

    :cond_0
    iget v0, p0, Lk;->J:I

    iget v1, p0, Lk;->C:I

    sub-int/2addr v0, v1

    if-ge p3, v0, :cond_1

    move v0, p3

    :cond_1
    iget v1, p0, Lk;->C:I

    add-int/2addr v0, v1

    iput v0, p0, Lk;->b:I

    iget v0, p0, Lk;->C:I

    :goto_0
    iget v1, p0, Lk;->b:I

    iget v2, p0, Lk;->C:I

    if-ne v1, v2, :cond_4

    :cond_2
    :goto_1
    if-eqz p1, :cond_3

    iget-object v1, p0, Lk;->B:[B

    iget v2, p0, Lk;->C:I

    sub-int/2addr v2, v0

    invoke-static {v1, v0, p1, p2, v2}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    :cond_3
    iget v1, p0, Lk;->C:I

    sub-int v0, v1, v0

    :goto_2
    return v0

    :cond_4
    iget v1, p0, Lk;->f:I

    iget v2, p0, Lk;->g:I

    if-ge v1, v2, :cond_2

    iget v1, p0, Lk;->Z:I

    packed-switch v1, :pswitch_data_0

    :cond_5
    :pswitch_0
    iget v1, p0, Lk;->d:I

    const/4 v2, 0x1

    if-ne v1, v2, :cond_11

    const/4 v1, 0x7

    iput v1, p0, Lk;->Z:I

    goto :goto_1

    :pswitch_1
    const/4 v0, 0x0

    goto :goto_2

    :pswitch_2
    const/4 v1, 0x0

    iput v1, p0, Lk;->i:I

    const/16 v1, 0x10

    invoke-direct {p0, v1}, Lk;->Code(I)I

    move-result v1

    iput v1, p0, Lk;->c:I

    const/16 v1, 0x10

    invoke-direct {p0, v1}, Lk;->Code(I)I

    const/4 v1, 0x3

    iput v1, p0, Lk;->Z:I

    :cond_6
    :pswitch_3
    iget v1, p0, Lk;->c:I

    if-lez v1, :cond_5

    iget v1, p0, Lk;->c:I

    const/4 v2, 0x1

    sub-int/2addr v1, v2

    iput v1, p0, Lk;->c:I

    iget-object v1, p0, Lk;->B:[B

    iget v2, p0, Lk;->C:I

    add-int/lit8 v3, v2, 0x1

    iput v3, p0, Lk;->C:I

    invoke-direct {p0}, Lk;->Code()I

    move-result v3

    int-to-byte v3, v3

    aput-byte v3, v1, v2

    iget v1, p0, Lk;->b:I

    iget v2, p0, Lk;->C:I

    if-ne v1, v2, :cond_6

    goto :goto_1

    :pswitch_4
    const/4 v1, 0x0

    :goto_3
    const/16 v2, 0x90

    if-ge v1, v2, :cond_7

    iget-object v2, p0, Lk;->n:[B

    const/16 v3, 0x8

    aput-byte v3, v2, v1

    add-int/lit8 v1, v1, 0x1

    goto :goto_3

    :cond_7
    :goto_4
    const/16 v2, 0x100

    if-ge v1, v2, :cond_8

    iget-object v2, p0, Lk;->n:[B

    const/16 v3, 0x9

    aput-byte v3, v2, v1

    add-int/lit8 v1, v1, 0x1

    goto :goto_4

    :cond_8
    :goto_5
    const/16 v2, 0x118

    if-ge v1, v2, :cond_9

    iget-object v2, p0, Lk;->n:[B

    const/4 v3, 0x7

    aput-byte v3, v2, v1

    add-int/lit8 v1, v1, 0x1

    goto :goto_5

    :cond_9
    :goto_6
    const/16 v2, 0x120

    if-ge v1, v2, :cond_a

    iget-object v2, p0, Lk;->n:[B

    const/16 v3, 0x8

    aput-byte v3, v2, v1

    add-int/lit8 v1, v1, 0x1

    goto :goto_6

    :cond_a
    iget-object v1, p0, Lk;->n:[B

    const/16 v2, 0x120

    iget-object v3, p0, Lk;->l:[S

    invoke-static {v1, v2, v3}, Lk;->Code([BI[S)V

    const/4 v1, 0x0

    :goto_7
    const/16 v2, 0x20

    if-ge v1, v2, :cond_b

    iget-object v2, p0, Lk;->n:[B

    const/4 v3, 0x5

    aput-byte v3, v2, v1

    add-int/lit8 v1, v1, 0x1

    goto :goto_7

    :cond_b
    iget-object v1, p0, Lk;->n:[B

    const/16 v2, 0x20

    iget-object v3, p0, Lk;->m:[S

    invoke-static {v1, v2, v3}, Lk;->Code([BI[S)V

    const/4 v1, 0x4

    iput v1, p0, Lk;->Z:I

    :pswitch_5
    invoke-direct {p0}, Lk;->Z()Z

    move-result v1

    if-eqz v1, :cond_5

    goto/16 :goto_1

    :pswitch_6
    const/4 v1, 0x5

    invoke-direct {p0, v1}, Lk;->Code(I)I

    move-result v1

    add-int/lit16 v1, v1, 0x101

    const/4 v2, 0x5

    invoke-direct {p0, v2}, Lk;->Code(I)I

    move-result v2

    add-int/lit8 v2, v2, 0x1

    const/4 v3, 0x4

    invoke-direct {p0, v3}, Lk;->Code(I)I

    move-result v3

    add-int/lit8 v3, v3, 0x4

    const/4 v4, 0x0

    :goto_8
    const/16 v5, 0x13

    if-ge v4, v5, :cond_10

    const/4 v5, 0x3

    if-ge v4, v5, :cond_c

    add-int/lit8 v5, v4, 0x10

    :goto_9
    iget-object v6, p0, Lk;->n:[B

    if-ge v4, v3, :cond_f

    const/4 v7, 0x3

    invoke-direct {p0, v7}, Lk;->Code(I)I

    move-result v7

    int-to-byte v7, v7

    :goto_a
    aput-byte v7, v6, v5

    add-int/lit8 v4, v4, 0x1

    goto :goto_8

    :cond_c
    const/4 v5, 0x3

    if-ne v4, v5, :cond_d

    const/4 v5, 0x0

    goto :goto_9

    :cond_d
    and-int/lit8 v5, v4, 0x1

    const/4 v6, 0x1

    if-ne v5, v6, :cond_e

    const/4 v5, 0x7

    const/4 v6, 0x5

    sub-int v6, v4, v6

    ushr-int/lit8 v6, v6, 0x1

    sub-int/2addr v5, v6

    goto :goto_9

    :cond_e
    const/4 v5, 0x4

    sub-int v5, v4, v5

    ushr-int/lit8 v5, v5, 0x1

    add-int/lit8 v5, v5, 0x8

    goto :goto_9

    :cond_f
    const/4 v7, 0x0

    goto :goto_a

    :cond_10
    const/16 v3, 0x24

    new-array v3, v3, [S

    iget-object v4, p0, Lk;->n:[B

    const/16 v5, 0x13

    invoke-static {v4, v5, v3}, Lk;->Code([BI[S)V

    invoke-direct {p0, v3, v1}, Lk;->Code([SI)[B

    move-result-object v4

    iget-object v5, p0, Lk;->l:[S

    invoke-static {v4, v1, v5}, Lk;->Code([BI[S)V

    invoke-direct {p0, v3, v2}, Lk;->Code([SI)[B

    move-result-object v1

    iget-object v3, p0, Lk;->m:[S

    invoke-static {v1, v2, v3}, Lk;->Code([BI[S)V

    const/4 v1, 0x5

    iput v1, p0, Lk;->Z:I

    :pswitch_7
    invoke-direct {p0}, Lk;->Z()Z

    move-result v1

    if-eqz v1, :cond_5

    goto/16 :goto_1

    :cond_11
    const/4 v1, 0x1

    invoke-direct {p0, v1}, Lk;->Code(I)I

    move-result v1

    iput v1, p0, Lk;->d:I

    const/4 v1, 0x2

    invoke-direct {p0, v1}, Lk;->Code(I)I

    move-result v1

    iput v1, p0, Lk;->Z:I

    goto/16 :goto_0

    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_2
        :pswitch_4
        :pswitch_6
        :pswitch_3
        :pswitch_5
        :pswitch_7
        :pswitch_0
        :pswitch_1
    .end packed-switch
.end method
